package com.jackiechancinema.ssm.service.Inte;


import com.jackiechancinema.ssm.bo.AdminBo;
import com.jackiechancinema.ssm.dto.AdminDto;
import com.jackiechancinema.ssm.dto.SerchDto;
import com.jackiechancinema.ssm.entity.Admin;
import com.jackiechancinema.ssm.vo.PageVo;
import com.jackiechancinema.ssm.vo.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface AdminService {
    PageVo<Admin> queryPage(AdminBo bo);
    R saveAdmin(AdminDto adminDto);
    R update(Admin admin);
    R delete(int id);
    R updatePassWord(String oldpass, String newpass, HttpSession session);
    R batchDel(List<Admin> adminList);
    R serch(SerchDto serchDto);
    R batchAdd(MultipartFile file);
    void exportExcel(AdminBo bo, HttpServletResponse response);
}
